/**
 * JAVACC DEMO 1.0
 */
package com.apache.portal.common.enums;

import com.apache.tools.StrUtil;

/**
 * description:  客户端方法标识枚举类
 * @author Hou Dayu 创建时间：2016-8-12
 */
public enum WbdMethodEnum {

	GongGao("gonggao"), ContentInfo("cview"), SessionList("seList"), ItemList("itemList"), ItemHistorys("itemHistorys"), MyApplyList(
			"myApply"), MyApplyHistorys("myApplyHistory"), MyProcessingItems("myProcessing"),VarietyList("varietys"),ItemAndPrice("itemAndPrice"),ItemHistory("itemHistory"), Deault("0000");

	private String name;

	private WbdMethodEnum(String name) {
		this.name = name;
	}

	// 普通方法  
	public static WbdMethodEnum getName(String name) {
		if (StrUtil.isNull(name))
			return Deault;
		for (WbdMethodEnum c : WbdMethodEnum.values()) {
			if (c.getName().equals(name)) {
				return c;
			}
		}
		return Deault;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
